package com.example.flower_shop.exception;

public class ResourceNotFoundException extends BusinessException {

    public ResourceNotFoundException(String message) {
        super("RESOURCE_NOT_FOUND", message);
    }

    public ResourceNotFoundException(String resourceName, Long id) {
        super("RESOURCE_NOT_FOUND", String.format("%s不存在(ID: %d)", resourceName, id));
    }
}